package com.hksj.cm.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author 陈章
 * @version 1.0
 * @see CleanlinessLevelDTO
 * @since 2024/3/7 11:37
 */
@ApiModel(value = "洁净级别管理", description = "洁净级别表")
@Data
public class CleanlinessLevelDTO {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "粒子字典值{0.5um、5um}")
    @NotBlank(message = "粒子字典值不能为空")
    private String particleValue;

    @ApiModelProperty(value = "建造标准字典值{100级、1000级、10000级}")
    @NotBlank(message = "建造标准字典值不能为空")
    private String constructionStandardsValue;

    @ApiModelProperty(value = "1优/2点/3-般")
    @NotBlank(message = "评级字典值不能为空")
    private String ratingValue;

    @ApiModelProperty(value = "粒子数量最小值")
    @NotNull(message = "粒子数量最小值不能为空")
    private Integer min;

    @ApiModelProperty(value = "粒子数量最大值")
    @NotNull(message = "粒子数量最大值不能为空")
    private Integer max;

    @ApiModelProperty(value = "评级类型(0=优良差评级 1=数字评级)")
    @NotNull(message = "评级类型不能为空")
    private Integer type;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "Asia/Shanghai", pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty(value = "创建者id")
    private Long creator;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(timezone = "Asia/Shanghai", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "更新者id")
    private Long updater;
}
